


%% write table

if options.SaveResults

    fid = fopen(['results/ComparisonEstimations.tex'],'w');

    fprintf(fid,'\\begin{tabular}{lccc}\n');
    fprintf(fid,'                            & Baseline   & Planner   & Data        \\\\[1mm] \n');
    fprintf(fid,'\\hline \\\\[-1mm] \n');
    fprintf(fid,'Aggregate unemployment rate & %2.3f      & %2.3f      & %2.3f      \\\\[1mm] \n' , [ MomentsCE.MeanU   , MomentsPP.MeanU   , MeanU_data      ] ) ; %VarDecomp(2,1)
    fprintf(fid,'St. dev. unemployment rate  & %2.3f      & %2.3f      & %2.3f      \\\\[1mm] \n' , [ MomentsCE.StdU    , MomentsPP.StdU    , StdU_data       ] ) ;
    fprintf(fid,'Var. log unemp. / emp.      & %2.3f      & %2.3f      & %2.3f      \\\\[2mm] \n' , [ MomentsCE.vU      , MomentsPP.vU      , VarUpred_data   ] ) ;
    fprintf(fid,'\\hskip5mm Job losing rate  & %2.0f \\%% & %2.0f \\%% & %2.0f \\%% \\\\[1mm] \n' , [ MomentsCE.vSep2p  , MomentsPP.vSep2p  , sep_data_nores  ] ) ;
    fprintf(fid,'\\hskip5mm Job finding rate & %2.0f \\%% & %2.0f \\%% & %2.0f \\%% \\\\[2mm] \n' , [ MomentsCE.vFind2p , MomentsPP.vFind2p , find_data_nores ] ) ;
    fprintf(fid,'\\hline\n');
    fprintf(fid,'\\end{tabular}');

    fclose(fid);

end

